﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace WF_QLThuVien.Entities
{
    public class CLogin
    {
        private string m_user;

        public string User
        {
            get { return m_user; }
            set { m_user = value; }
        }

        private string m_pass;

        public string Pass
        {
            get { return m_pass; }
            set { m_pass = value; }
        }

        private string m_id;

        public string Id
        {
            get { return m_id; }
            set { m_id = value; }
        }

        public CLogin(DataRow r)
        {
            User = r["User"].ToString();
            Pass = r["Pass"].ToString();
            Id = r["ID"].ToString();
        }

        public CLogin()
        {
            User = "";
            Pass = "";
        }

        public CLogin(string user, string pass, string id)
        {
            User = user;
            Pass = pass;
            Id = id;
        }
    }
}
